﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage/SubEmptyMaster.Master" AutoEventWireup="true" CodeBehind="QueryMachineByProcess.aspx.cs" Inherits="BySoft.Web.Site.ComPage.QueryMachineByProcess" %>

<%@ MasterType VirtualPath="~/MastePage/SubEmptyMaster.master" %>
<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="HeadPlace">
    <script type="text/javascript">
        function CheckNumWithDotOne(txtBox) {
            if (txtBox != null && txtBox.value != "") {
                var numFormat = /(^[0-9]\d{0,9}(\.\d{0,4})?$)/;
                var text = txtBox.value;
                if (!numFormat.test(text)) {
                    txtBox.value = 0;
                }
            }
        }
        function ChangeBillDate() {
            document.getElementById('<%=btnBillDate.ClientID%>').click();
        }
    </script>
</asp:Content>
<asp:Content ID="cphContent" runat="server" ContentPlaceHolderID="EmptyMasteCPH">
    <div class="tableStyle2">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table border="0" cellspacing="0" cellpadding="0" style="text-align: left; width: 100%"
                    id="tBase" runat="server">
                    <tr>
                        <th class="left2">日期：
                        </th>
                        <td class="right2">
                            <input class="Wdate" id="cpBillDate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" onchange="ChangeBillDate()" readonly="true" runat="server" type="text"></input>
                            <asp:Button ID="btnBillDate" runat="server" CssClass="Hidden" OnClick="btnBillDate_Click"/>
                        </td>
                        <th class="left2">工序编号</th>
                        <td class="right2">
                            <asp:TextBox ID="txtProcessID" runat="server" CssClass="lblreadonly"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th class="left2">机台：</th>
                        <td class="right2">
                            <asp:DropDownList ID="ddlMachineID" runat="server" OnSelectedIndexChanged="ddlMachineID_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                        </td>
                        <th class="left2">预计投入时间：</th>
                        <td class="right2">
                            <asp:TextBox ID="txtExpectInputTime" runat="server" onkeyup="CheckNumWithDotOne(this)"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th class="left2">标准产能时间：</th>
                        <td class="right2"><asp:TextBox ID="txtStandardTime" runat="server" CssClass="lblreadonly"></asp:TextBox></td>
                        <th class="left2">剩余产能时间：</th>
                        <td class="right2"><asp:TextBox ID="txtLastStandard" runat="server" CssClass="lblreadonly"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th class="left2">单件标准加工时间：</th>
                        <td class="right2">
                            <asp:TextBox ID="txtSingleStandardProcessTime" runat="server" onkeyup="CheckNumWithDotOne(this)"></asp:TextBox>
                        </td>
                        <th class="left2">调机时间：</th>
                        <td class="right2">
                            <asp:TextBox ID="txtAdjustTime" runat="server" onkeyup="CheckNumWithDotOne(this)"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <th class="left2">单件装夹时间：</th>
                        <td class="right2">
                            <asp:TextBox ID="txtSingleClampTime" runat="server" onkeyup="CheckNumWithDotOne(this)"></asp:TextBox>
                        </td>
                        <th class="left2">预计生产时间：</th>
                        <td class="right2">
                            <input class="Wdate" id="cpExpectProduceTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" runat="server" type="text"></input>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:HiddenField ID="hdScheduleProcessID" runat="server" />
        <asp:HiddenField ID="hdScheduleID" runat="server" />
        <asp:HiddenField ID="hdScheduleMachineID" runat="server" />
    </div>
    <div class="controlBar" align="center">
        <table cellpadding="0" cellspacing="0" style="width: 300px; margin: 0 auto;">
            <tr>
                <td colspan="4">
                    <label class="btnStyleb png_bg">
                        <asp:Button ID="btnSubmit" runat="server" Text="确定" OnClick="btnSubmit_Click"
                            class="png_bg" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>



